//
//  UIImage+image.h
//  HA
//
//  Created by sy on 2023/12/17.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIImage (image)

+ (UIImage*)gradientImageWithBounds:(CGRect)bounds andColors:(NSArray*)colors andGradientType:(int)gradientType;
#pragma mark - 根据宽高压缩图片
+(UIImage *)imageWithImage:(UIImage *)image scaledToSize:(CGSize)newSize;
//返回指定大小的图片
+(UIImage *)xl_cuttingImageWith:(UIImage *)image toSize:(CGSize)size;
//生成二维码
+(UIImage *)generateQRCodeWithString:(NSString *)string Size:(CGFloat)size;

@end

NS_ASSUME_NONNULL_END
